<? include 'templates/ganjawars/header.tpl' ?>
<script>
function setfriends(){
    var friends ="Други";
    document.getElementById('friendsbody').innerHTML=friends;
    return false;
}
function setvisitors(){
    var visitors ="Гости";
    document.getElementById('friendsbody').innerHTML=visitors;
    return false;
}

function hpupdate(){
    if (hptimer>=0) clearTimeout(hptimer);
    hptimer=setTimeout('hpupdate()',1000);
    hp_current_h=hp_current_h+hp_speed_h;
    if (hp_current_h>hp_max_h) hp_current_h=hp_max_h;
    if (hp_speed_h>1) 
        rnd=1;
    else 
        rnd=10;
    var res=Math.round(hp_current_h*rnd)/rnd;
    window.document.getElementById("hpdiv").innerHTML=res;
}
var hp_start_h=<?= $tpl['hp'] ?>;
var hp_max_h=<?= $tpl['hp_now'] ?>;
var hp_speed_h=0.1;
var hp_current_h=hp_start_h;
hptimer=setTimeout('hpupdate()',1000);

function searchf(){
    document.getElementById("searchf").innerHTML="<table cellpadding=3 cellspacing=1><tr><td><form name=fsearch id=fsearch action=/search.php method=GET><input type=text name=key value=''><input type=submit value='&raquo;'><font style='font-size:9px'><br><center>введите ник</center></font></td></tr></form></table>";
    setTimeout('document.forms.fsearch.key.focus()',100);
    return false;
}

</script>
<table align="center" bgcolor="#ffffff" border="0" cellpadding="1" cellspacing="0">
    <tbody>
        <tr>
            <td class="txt">
                <table align="center" border="0" cellpadding="4" cellspacing="2" width="730">
                    <tbody>
                        <tr>
                            <td bgcolor="#d0eed0" width="500"><div align="center"><nobr><b>Ваш персонаж</b></nobr></div></td>
                            <td bgcolor="#d0eed0" width="200"><div align="center"><nobr><b>Сервисы</b></nobr></div></td>
                        </tr>
                        <tr>
                            <td bgcolor="#f0fff0" valign="top">
                                <center><a href="info.php?uin=<?= $tpl['uid']; ?>"><b><?= $tpl['name']; ?></b></a></center>
                                &nbsp;»&nbsp;<font color="green"><b>Здоровье:</b></font> <div style="display:inline" id="hpdiv"><?= $tpl['hp_now'] ?></div>&nbsp;/&nbsp;<?= $tpl['hp'] ?><br/>
                                &nbsp;»&nbsp;Наличность: <b>$<div style="display:inline" id="cdiv"><?= $tpl['money_1']; ?></div></b><br/>
                                &nbsp;»&nbsp;Район: <a href="http://www.ganjawars.ru/map.php?sx=151&amp;sy=150" style="text-decoration: none;">[Z] Energy One&nbsp;[<u>»»</u>]</a><br/><br/>
                            </td>
                            <td rowspan="2" bgcolor="#f0fff0" valign="top">
                                <a href="pers_items.php"><img src="templates/ganjawars/img/weapon.gif" border="0" height="10" width="12"></a>&nbsp;<a href="pers_items.php"><b><font color="red">Ваше вооружение</font></b></a><br>
                                <a href="#"><img src="templates/ganjawars/img/farm.gif" border="0" height="10" width="12"></a>&nbsp;<a href="#">Ваша ферма</a><br>
                                <a href="shop.php"><img src="templates/ganjawars/img/shop.gif" border="0" height="10" width="12"></a>&nbsp;<a href="shop.php">Гос. магазин</a><br>
                                <a href="market.php"><img src="templates/ganjawars/img/market.gif" border="0" height="10" width="12"></a>&nbsp;<a href="market.php">Доска объявлений</a><br>
                                <br/>
                                <a href="mail.php"><img src="templates/ganjawars/img/mail.gif" border="0" height="10" width="12"></a>&nbsp;<a href="mail.php">Личная почта</a><br>
                                <a href="pers_money_t.php"><img src="templates/ganjawars/img/cashsend.gif" border="0" height="10" width="12"></a>&nbsp;<a href="pers_money_t.php">Перевод денег</a><br>
                                <a href="pers_options.php"><img src="templates/ganjawars/img/properties.gif" border="0" height="10" width="12"></a>&nbsp;<a href="pers_options.php">Личные настройки</a><br>
                                <br/>
                                <a href="search.php" onclick="return searchf();"><img src="templates/ganjawars/img/search.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="search.php" onclick="return searchf();"><b><font color="red">Найти игрока</font></b></a><br/>
                                <div id="searchf"></div>
                                <a href="http://www.ganjawars.ru/warlog.php?bid=1164835766"><img src="templates/ganjawars/img/last_fight.gif" border="0" height="10" width="12"></a>&nbsp;<a href="http://www.ganjawars.ru/warlog.php?bid=1164835766"><b>Последний бой</b></a><br/>
                                <a href="http://www.ganjawars.ru/usertransfers.php?id=423917"><img src="templates/ganjawars/img/cashlog.gif" border="0" height="10" width="12"></a>&nbsp;<a href="log_m.php?uin=<?= $tpl['uid']; ?>">Протокол передач</a><br/>
                                <a href="http://www.ganjawars.ru/info.warstats.php?id=423917"><img src="templates/ganjawars/img/wlog.gif" border="0" height="10" width="12"></a>&nbsp;<a href="log_btl.php?uin=<?= $tpl['uid']; ?>">Протокол боёв</a><br/>
                                <br/>
                                <a href="pers_friends.php"><img src="templates/ganjawars/img/friends.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="pers_friends.php">Ваши друзья</a><br/>
                                <a href="pers_klans.php"><img src="templates/ganjawars/img/syndicate.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="pers_klans.php">Ваши синдикаты</a><br/>
                                <a href="http://www.ganjawars.ru/info.ach.php?id=423917"><img src="templates/ganjawars/img/ach.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="http://www.ganjawars.ru/info.ach.php?id=423917">Ваши достижения</a><br/>
                                <a href="http://www.ganjawars.ru/iski.php"><img src="templates/ganjawars/img/iski.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="http://www.ganjawars.ru/iski.php">Пожаловаться</a><br/>
                                <br/>
                                <a href="http://photos.ganjawars.ru/edit.php"><img src="templates/ganjawars/img/ganjafoto.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="http://photos.ganjawars.ru/edit.php">Ваш фотоальбом</a><br/>
                                <a href="http://ganjafile.ru/upload.php"><img src="templates/ganjawars/img/ganjafile.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="http://www.ganjafile.ru/upload.php">Ваши файлы</a><br/>
                                <a href="http://bank.ganjawars.ru/"><img src="templates/ganjawars/img/bank.gif" border="0" height="10" width="12"/></a>&nbsp;<a href="http://bank.ganjawars.ru/" title="Операции с EUN, выдача кредитов"><b>Банк Ganja Islands</b></a><br/>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#f0fff0" valign="top">
                                <table border="0">
                                    <tbody>
                                        <tr>
                                            <td align="left" valign="top" width="100%">
                                                <table border="0" cellspacing="0" width="330">
                                                    <tbody>
                                                        <tr>
                                                            <td align="right" width="150"><nobr>Боевой уровень:</nobr></td>
                                                            <td><nobr><font color="#990000"><b>19</b></font> (28889.9)</nobr></td>
                                                            <td style="font-size: 8px; color: rgb(105, 97, 86);" align="right">+5464</td>
                                                            <td width="33">&nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right"><nobr>Экономический:</nobr></td>
                                                            <td><nobr><font color="#000099"><b>4</b></font> (21866.5)</nobr></td>
                                                            <td style="font-size: 8px; color: rgb(86, 86, 105);" align="right">+13792</td>
                                                            <td width="33">&nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td align="right"><nobr>Производственный:</nobr></td>
                                                            <td><nobr><font color="#009900"><b>9</b></font> (4592.504)</nobr></td>
                                                            <td style="font-size: 8px; color: rgb(86, 105, 86);" align="right">+1429</td>
                                                            <td width="33">&nbsp;</td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                            <td rowspan="2" align="center" valign="top">
                                                <table border="0" cellpadding="0" cellspacing="0">
                                                    <tbody>
                                                        <tr>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                            <td class="txt"><nobr>&nbsp;&nbsp;<img src="templates/ganjawars/img/skill_combat_pistols.gif" height="10" width="12">&nbsp;<b><font color="#990000"><?= $tpl['pis'] ?></font></b> (2.5)<font style="font-size:8px;color:#809980">+1.5</font></nobr></td>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                        </tr>
                                                        <tr>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                            <td class="txt"><nobr><img src="templates/ganjawars/img/skill_combat_explosives.gif" height="14" width="20">&nbsp;<b><font color="#990000"><?= $tpl['grn'] ?></font></b> (33.6)<font style="font-size:8px;color:#809980">+2.31</font></nobr></td>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                        </tr>
                                                        <tr>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                            <td class="txt"><nobr><img src="templates/ganjawars/img/skill_combat_auto.gif" height="14" width="20">&nbsp;<b><font color="#990000"><?= $tpl['avt'] ?></font></b> (127.4)<font style="font-size:8px;color:#809980">+48.6</font></nobr></td>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                        </tr>
                                                        <tr>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                            <td class="txt"><nobr><img src="templates/ganjawars/img/skill_combat_heavy.gif" height="14" width="20">&nbsp;<b><font color="#990000"><?= $tpl['pul'] ?></font></b> (485.1)<font style="font-size:8px;color:#809980">+151.84</font></nobr></td>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                        </tr>
                                                        <tr>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                            <td class="txt"><nobr><img src="templates/ganjawars/img/skill_combat_sgun.gif" height="14" width="20">&nbsp;<b><font color="#990000"><?= $tpl['drb'] ?></font></b> (0)<font style="font-size:8px;color:#809980">+4</font></nobr></td>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                        </tr>
                                                        <tr>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                            <td class="txt"><nobr><img src="templates/ganjawars/img/skill_combat_snipe.gif" height="14" width="20">&nbsp;<b><font color="#990000"><?= $tpl['vin'] ?></font></b> (2.9)<font style="font-size:8px;color:#809980">+1.1</font></nobr></td>
                                                            <td><img src="templates/ganjawars/img/tbg.gif" width="20"></td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table border="0" cellpadding="0" cellspacing="1">
                                                    <tbody>
                                                        <tr>
                                                            <td class="txt" align="right" width="150">Сила:</td>
                                                            <td class="txt" style="color: rgb(153, 0, 0); font-weight: bold;"><?= $row['param_4']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="txt" align="right" width="150">Меткость:</td>
                                                            <td class="txt" style="color: rgb(0, 0, 153); font-weight: bold;"><?= $row['param_1']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="txt" align="right" width="150">Здоровье:</td>
                                                            <td class="txt" style="color: rgb(0, 153, 0); font-weight: bold;"><?= $row['param_2'] ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="txt" align="right" width="150">Выносливость:</td>
                                                            <td class="txt" style="color: rgb(102, 0, 102); font-weight: bold;"><?= $row['param_3']; ?></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="txt" colspan="2" align="right"><a href="pers_param.php" style="font-size: 8px;">сброс</a></td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="font-size: 8pt;" align="center" bgcolor="#f0fff0" valign="middle">
                                Ваш адрес: 37.110.210.212<br/>
                                Последний раз Вы были авторизованы по адресу 37.110.210.32<br/>
                                <br/>
                                Вы не меняли пароль персонажа более двух месяцев. <br>
                                <b>Пожалуйста,</b> измените его <a href="http://www.ganjawars.ru/info.edit.php?type=security" style="font-size: 8pt;">на странице настроек</a>.<br><br>
                                Вы работаете на объекте <a href="http://www.ganjawars.ru/object.php?id=69223" style="font-size: 8pt;">Шахта</a> у <a href="http://www.ganjawars.ru/info.php?id=1526108" style="font-size: 8pt;"><b>TWG</b></a>, <nobr>осталось 120 минут.</nobr>
                            </td>
                            <td style="font-size: 8pt;" bgcolor="#f0fff0" valign="middle">
                                <b>»</b>&nbsp;&nbsp;<a href="logout.php" title="Прежде чем уходить, запишите пароль!"><b>Выход из игры</b></a><br>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table align="center" bgcolor="#d0eed0" border="0" cellpadding="0" cellspacing="0" width="726">
                    <tbody>
                        <tr>
                            <td><img src="templates/ganjawars/img/tbg.gif" height="2" width="1"/></td>
                        </tr>
                    </tbody>
                </table>
                <table align="center" border="0" cellpadding="4" cellspacing="2" width="730">
                    <tbody>
                        <tr>
                            <td colspan="2" bgcolor="#f0fff0" valign="bottom">
                	           <table align="center" border="0" cellpadding="0" cellspacing="1">
                	               <tbody>
                                        <tr>
                                            <td><a href="#"><img src="templates/ganjawars/img/saw_s.jpg" title="19/20" border="0" height="51" width="51"/></a></td>
                                            <td><a href="#"><img src="templates/ganjawars/img/23f_belt_s.jpg" title="11/12" border="0" height="51" width="51"/></a></td>
                                            <td><a href="#"><img src="templates/ganjawars/img/23f_helmet_s.jpg" title="11/12" border="0" height="51" width="51"/></a></td>
                                            <td><a href="#"><img src="templates/ganjawars/img/boat2_s.jpg" title="17/20" border="0" height="51" width="51"/></a></td>
                                            <td><a href="#"><img src="templates/ganjawars/img/23f_gantel_s.jpg" title="11/12" border="0" height="51" width="51"/></a></td>
                                            <td><a href="#"><img src="templates/ganjawars/img/salo_s.jpg" title="3/6" border="0" height="51" width="51"/></a></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#d0eed0"><div align="center"><nobr><b><a href="http://www.ganjawars.ru/me/" onclick="return setfriends()">Друзья онлайн</a></b> (0)<b> / <a href="http://www.ganjawars.ru/me/?block=guests" onclick="return setvisitors()">Гости</a></b> (0)</nobr></div></td>
                            <td bgcolor="#d0eed0"><div align="center"><nobr><a href="http://www.ganjawars.ru/me/?nb=news" style="font-weight: bold;">Новости</a></nobr></div></td>
                        </tr>
                        <tr>
                            <td bgcolor="#f0fff0" valign="top" width="60%"><div id="friendsbody">По умолчанию при загрузке</div></td>
                            <td bgcolor="#f0fff0" valign="top" width="40%"><nobr><? include 'scr/news.php'; ?></nobr></td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
<? include 'templates/ganjawars/footer.tpl' ?>